#ifndef LIST_H
#define LIST_H

class List {
public:

	List(int size);
	~List();
	void ClearList();
	bool ListEmpty();
	int ListLength();

	bool GetElem(int index, int *e);
	int LocateElem(int *e);

	bool PriorElem(int *currentElem, int *preElem);
	bool NextElem(int *currentElem, int *preElem);
	void ListTraverse();

	bool ListInsert(int index, int *e);
	bool ListDelete(int index, int *e);



private:
	int *m_pList;
	int m_iSize;
	int m_iLength;
};

#endif